package com.cloud.salon.client.authority.repository;

import com.cloud.salon.common.base.entity.authority.relation.RoleAuthority;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Description 角色权限关联仓库
 * @Author wolf--LZH
 * @CreateDate 2019/5/3 0003 下午 3:45
 */
public interface RoleAuthorityRepository extends JpaRepository<RoleAuthority, Integer> {

    @Transactional
    void deleteByRoleIdAndAndAuthorityId(Integer roleId, Integer authorityId);
}
